{{include file='layout/header.tpl'}}

{{include file='form/search.tpl'
  action=$_param.page
  value=$_param.get.s|default
}}

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

<table class="table_edit">
<thead>
<tr>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.id
  name='yaku_id'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.sort
  name='sort'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.name
  name='name'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.slug
  name='slug'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.note
  name='note'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.editor_note
  name='editor_note'
  query='s'
}}</th>
<th>{{include file='form/list.order.tpl'
  label=$smarty.config.update_date
  name='update_date'
  query='s'
}}</th>
</tr>
</thead>
{{foreach $data.list as $v}}
{{$category_array = $v->_category|pgstr2ary}}
<tr>
<td>{{$v->yaku_id}}</td>
<td>{{$v->sort}}</td>
<td><a href="{{$_param.page}}/{{$v->yaku_id}}">{{$v->name}}</a></td>
<td>{{$v->slug}}</td>
<td>{{$v->note}}</td>
<td>{{$v->editor_note}}</td>
<td>{{$v->update_date->format('Y-m-d H:i:s')}}</td>
</tr>
{{/foreach}}
</table>

<a href="{{$_param.page}}/0">{{$smarty.config.newpost}}</a><br/>

{{include file='parts/page.tpl'
  page=$_param.get.p|default:1
  query='s,r'
  limit=$data.list_count->_limit|default:0
  count=$data.list_count->_count|default:0
}}

{{include file='layout/footer.tpl'}}